<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:form="http://java.sun.com/jsf/composite/components/form"
	template="/templates/include/securedmain.xhtml">

	<ui:define name="content">

		<h:form id="form">
			<p:growl id="growl" showDetail="true" sticky="false" />
			<p:panelGrid columns="2" rowClasses="center-td">

				<f:facet name="header">
					<h:outputText value="#{msg['view.objectedit.form.head']}:" />
				</f:facet>
				<h:outputText value="#{msg['properties.objectclass.name']}:" />
				<p:inputText value="#{editObjectClassBean.selectedObjectClass.name}"
					id="name" required="true" />

				<h:outputText value="#{msg['properties.objectclass.description']}:" />
				<p:inputTextarea autoResize="false"
					value="#{editObjectClassBean.selectedObjectClass.description}"
					id="desc" />

				<h:outputText value="#{msg['properties.objectclass.pickable']}:" />
				<p:selectBooleanCheckbox disabled="true" 
					value="#{editObjectClassBean.selectedObjectClass.pickable}">
					<p:ajax event="change" update="@this"/>
				</p:selectBooleanCheckbox>

				<h:outputText value="#{msg['properties.objectclass.returnable']}:" />
				<p:selectBooleanCheckbox disabled="true" 
					value="#{editObjectClassBean.selectedObjectClass.returnable}">
					<p:ajax event="change" update="@this" disabled="true"/>
				</p:selectBooleanCheckbox>
				<f:facet name="footer">
					<p:commandButton id="commitButton"
						action="#{editObjectClassBean.edit}"
						value="#{msg['view.actions.button.commit']}" update="@form"
						ajax="false" />
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
